package com.yeban.javase.day20.junit;

import java.util.ArrayList;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/4
 */
public class UserService {

    // 登录
    public boolean login(String username, String password) {
        if("张三".equals(username) && "123456".equals(password)) {
            return true;
        }
        return false;
    }

    // 注册
    public boolean register(String username) {
        ArrayList<Object> list = new ArrayList<>();
        boolean flag = list.add(username);
        System.out.println(list);
        return flag;
    }
}
